package org.example.system.controller;

import lombok.AllArgsConstructor;
import org.example.common.base.util.web.AjaxResult;
import org.example.system.service.ISysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统用户 前端控制器
 * </p>
 *
 * @author LiJunYi
 * @since 2020-05-25
 */
@AllArgsConstructor
@RestController
@RequestMapping("/user")
public class SysUserController {

    private final ISysUserService userService;

    @GetMapping("list")
    public AjaxResult list()
    {
        return AjaxResult.success(userService.getList());
    }
}

